package cn.wlinker.driver.coap.test;

import cn.wlinker.driver.coap.core.CborController;
import cn.wlinker.driver.coap.core.MqttController;
import org.eclipse.californium.core.CoapServer;

public class CoapDemoServer2 {

    public static void main(String[] args) {
        // 默认主机为 localhost 端口为默认端口5683
        CoapServer server = new CoapServer();
        // 添加资源mqtt(可以任意字符串类似于 http 中的请求地址)
        server.add(new MqttController("mqtt"));
        server.add(new CborController("cbor"));
        server.start();
    }
}
